International Journal of Data Science and Big Data Analytics
|
Volume 1, Issue 2, May 2021 | |
Research PaperOpenAccess | |
Restaurant tip prediction using linear regression |
|
Alex Mirugwe1* |
|
1Department of Statistical Sciences, Faculty of Science, University of Cape Town, Cape Town, South Africa. E-mail: Mrgale005@myuct.ac.za
*Corresponding Author | |
Int.J.Data.Sci. and Big Data Anal. 1(2) (2021) 31-38, DOI: https://doi.org/10.51483/IJDSBDA.1.2.2021.31-38 | |
Received: 12/12/2020|Accepted: 10/04/2021|Published: 05/05/2021 |
The objective of this paper is to build a linear model for predicting the average amount of tip in dollars a waiter is expected to earn from the restaurant given the predictor variables, i.e., total bill paid, day, the gender of the customer (sex) time of the party, smoker and size of the party. The model was based on the data created by one waiter at a certain restaurant in California who recorded information about each tip he received. This model can be applied at any restaurant with similar predictor variables to determine the amount of tip. The final result from this analysis proved a regression model with a minimum prediction Root Mean Square Error (RMSE) of 1.1815.
Keywords: Machine learning, Linear regression, Mean Squared Error (MSE), Root Mean Squared Error (RMSE)
Full text | Download |
Copyright © SvedbergOpen. All rights reserved